package nio2;

import java.nio.file.FileStore;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;

public class FileSystemDemo1 {

	public static void main(String[] args) {
		FileSystem fs = FileSystems.getDefault();
		System.out.println(fs.isReadOnly());
		for (FileStore s : fs.getFileStores()) {
			System.out.printf("%s,%s",s,s.type());
			System.out.println("");
		}
		System.out.println("-------------");
		for (Path p : fs.getRootDirectories()) {
			System.out.println(p);
		}
	}

}
